Installation

A few words on installation on various platforms:

Amiga:
Use the supplied Installer script.
MS-DOS:
Copy the binary (``ChkTeX.exe'') to somewhere in your path, and place the ``chktexrc'' file in the same directory.
UNIX:
Type ``configure'', ``make'' and finally ``make install''. If you don't have superuser privileges and thus access to the default system areas, you should type ``configure â€“help'' to help you set up correct paths.

Other platforms:
First of all, you have to copy the ``config.h.in'' file to a file named ``config.h''. Then, edit it to reflect your system. Do the same with ``ChkTeX.h'' (this file has been reduced significantly). If you wish, you may define ``DATADIR'' to the path you want the global resource file to be put.

Now, I would suggest that you also take a peak at the ``OpSys.c'' file first, and edit it appropiately, for more comfort. This should not be necessary, though, at least not the first time.

Finally, you may now compile and link all .c files. Define ``HAVE_CONFIG_H'' to 1 (on the command-line, for instance). If the ``config.h'' you wish to use has another name, define ``CONFIG_H_NAME'' to that (in that case, don't define ``HAVE_CONFIG_H''.

Put the directory path of the ``chktexrc'' file in a environment variable named ``CHKTEXRC''. The files ``deweb.in'' and ``chkweb.in'' should be moved to a directory in your path. These files may need further setup, as they haven't got the location of perl and csh initialized.

Note: You must install the new ``chktexrc'' file; ChkTEX will fail to function unless!

After doing this, you may enhance ChkTEX' behaviour by reading/editing the ``chktexrc'' file.